<?php 

include '../function.php';

// echo time();
// echo Ftime(1504745817);


$num =0;

for ($i=1986; $i < 2017 ; $i++) { 
	
	$date = $i."-12-25";

	$time = strtotime($date);

	// var_dump(getdate($time));
 
	$w = date("w",$time);

	if($w==0){
		$num++;
	}

}
// echo $num;


$arr= [];

while (count($arr)<>6) {
	$num = mt_rand(1,47);

	if(!in_array($num,$arr)){
		$arr[] = $num;
	}
}

var_dump($arr);


for ($i=0; $i <6 ; $i++) { 
	$num = mt_rand(1,47);

	if(!in_array($num,$arr)){
		$arr[] = $num;
	}else{
		$i--;
	}

}









 ?>